package com.hyb.service.impl;

import com.hyb.mapper.PriorityMapper;
import com.hyb.pojo.Priority;
import com.hyb.service.PriorityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class PriorityServiceImpl implements PriorityService {
    @Autowired
    PriorityMapper priorityMapper;

    @Override
    public List<Priority> getAll() {
        return priorityMapper.selectAll();
    }

    @Override
    public Priority getById(int id) {
        return priorityMapper.selectById();
    }
}
